#pragma once

#ifdef _WIN32

#else
#include <web/Socket.h>
#include <sys/socket.h>
#include <sys/epoll.h>

namespace Web
{
    struct Epoll : public Web::Socket
    {

        int Create1(int flag)
        {
            this->fd = epoll_create1(flag);
            return fd;
        };


        int Ctl(int __op, int __fd,
                struct epoll_event *__ev)
        {
            return epoll_ctl(fd, __op, __fd, __ev);
        };

        int Wait(struct epoll_event *__events,
                 int __maxevents, int __timeout)
        {
            return epoll_wait(fd, __events, __maxevents, __timeout);
        }
    };
}

#endif